package com.service.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.service.dao.model.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    int updateByPrimaryKeySelective(SysUserRole record);

    List<SysUserRole> listUserRoleByRoleIdAndRoleStatus(@Param("roleId") Integer roleId, @Param("roleStatus") Boolean roleStatus);

    int insertBatch(@Param("userId") Integer userId, @Param("roleIds") List<Integer> roleIds);
}